package packagerole;

import java.util.Set;

import javax.persistence.Table;

@Table(name = "")
public class Goods {
	public Goods(long id, String type, String goods_class, String name, String description, long number, long price) {
		super();
		this.id = id;
		this.type = type;
		this.goodsClass = goods_class;
		this.name = name;
		this.description = description;
		this.number = number;
		this.price = price;
	}

	public Goods(String name) {
		super();
		this.name = name;
	}

	private long id;
	private String type;
	private String goodsClass;
	private String name;
	private String description;
	private long number;
	private long price;
	private Set<Order>orders;
	private Set<Merchant>merchants;

	public Goods() {
		super();
	}

	public Goods(String type, String goods_class, String name, String description, long number, long price) {
		super();
		this.type = type;
		this.goodsClass = goods_class;
		this.name = name;
		this.description = description;
		this.number = number;
		this.price = price;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getGoods_class() {
		return goodsClass;
	}

	public void setGoods_class(String goods_class) {
		this.goodsClass = goods_class;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public long getNumber() {
		return number;
	}

	public void setNumber(long number) {
		this.number = number;
	}

	public long getPrice() {
		return price;
	}

	public void setPrice(long price) {
		this.price = price;
	}
}
